package com.qm.console.dao.model;

import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@AllArgsConstructor
@Builder
public class ImageRecordDO {
    private Integer id;

    private Integer state;

    private String url;

    private Integer uid;

    private Integer gender;

    private String sceneId;

    private String sceneType;

    private Date recordTime;

    private Date updateTime;

    private Integer identifyRetry;

    private Float rate;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url == null ? null : url.trim();
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getSceneId() {
        return sceneId;
    }

    public void setSceneId(String sceneId) {
        this.sceneId = sceneId == null ? null : sceneId.trim();
    }

    public String getSceneType() {
        return sceneType;
    }

    public void setSceneType(String sceneType) {
        this.sceneType = sceneType == null ? null : sceneType.trim();
    }

    public Date getRecordTime() {
        return recordTime;
    }

    public void setRecordTime(Date recordTime) {
        this.recordTime = recordTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getIdentifyRetry() {
        return identifyRetry;
    }

    public void setIdentifyRetry(Integer identifyRetry) {
        this.identifyRetry = identifyRetry;
    }

    public Float getRate() {
        return rate;
    }

    public void setRate(Float rate) {
        this.rate = rate;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", state=").append(state);
        sb.append(", url=").append(url);
        sb.append(", uid=").append(uid);
        sb.append(", gender=").append(gender);
        sb.append(", sceneId=").append(sceneId);
        sb.append(", sceneType=").append(sceneType);
        sb.append(", recordTime=").append(recordTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", identifyRetry=").append(identifyRetry);
        sb.append(", rate=").append(rate);
        sb.append("]");
        return sb.toString();
    }
}